package cn.dglydrpy.eshop.website.learn;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 用于切换自定义监控的值
 */
@RestController
@RequestMapping("/health")
public class HealthIndicatorController {

    @RequestMapping("/change")
    public void changeHealthStatus(){
        MyHealthIndicator.STATUS = !MyHealthIndicator.STATUS;
    }
}
